package Mapper;

import Java.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    List<User> selectAll();

    @Select("select * from user where username=#{username}")
    User selectByUsername(String username);

    //根据数组删除数据
    int deleteByArray(int[] ids);
}
